from django.shortcuts import render_to_response
from rex import settings
import datetime


def rex_render(template, context={}):
    context['STATIC_URL'] = settings.STATIC_URL
    context['TIME'] = datetime.datetime.now().strftime("%Y-%m-%d %H:%I:%S")

    return render_to_response(template, context)
